<?php

  require_once "JooS/Event.php";

  /**
   * Слушатель события - JooS_PHPackager_DOM_Element_Package::addMethod
   *
   * @property JooS_CodeGenerator_Method $method
   */
  final class JooS_Event_Phpackager_Package_Method_Create extends JooS_Event {
    /**
     * @param JooS_CodeGenerator_Method $method
     * @return JooS_Event_Phpackager_Package_Method_Create
     */
    public function setMethod(JooS_CodeGenerator_Method $method) {
      $this->method = $method;
      return $this;
    }

    /**
     * @return JooS_Event_Phpackager_Package_Method_Create
     */
    public static function getInstance() {
      return self::_getInstance(__CLASS__);
    }
  }
